package com.will.yuaiagent.agent;

import org.springframework.ai.tool.annotation.Tool;

/**
 * @author will
 * @since 2025/7/25 11:37
 */
public class TerminateTool {

    /**
     * 终结任务(作用是让智能体合理的中断)
     */
    @Tool(description = """
            Terminate the interaction when the request is met OR if the assistant cannot proceed further with the task.
            When you have finished all the tasks, call this tool to end the work.
            """, name = "doTerminate")
    public String doTerminate() {
        return "over!";
    }
}
